#ifndef FOC_LOOP_STM32_MCU_H
#define FOC_LOOP_STM32_MCU_H

#include "tim.h"

// default pwm parameters
#define _PWM_RANGE 1799 //
#define _PWM_FREQUENCY 40000 // 25khz
#define _PWM_FREQUENCY_MAX 50000 // 50khz


void _init3PWM();
void _writeDutyCycle3PWM(float dc_a, float dc_b, float dc_c);


#endif //FOC_DRIVER_STM32_MCU_H
